#include "Queue.h"
#include <stdio.h>
void test1()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	printf("size:%d\n", QueueSize(&q));
	while (!QueueEmpty(&q))
	{
		printf("%d ", q.phead->data);
		QueuePop(&q);
	}
	printf("\n");
	QueuePush(&q, 3);
	printf("size:%d\n", QueueSize(&q));
	QueuePush(&q, 4);
	while (!QueueEmpty(&q))
	{
		printf("%d ", QueueFront(&q));
		QueuePop(&q);
	}
	printf("\n");
	printf("size:%d\n", QueueSize(&q));
	QueueDestory(&q);



}
int main()
{
	test1();
	//test2();

	return 0;
}